package com.newtouch.xcd.cms.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.newtouch.xcd.cms.entity.Contract;
import com.newtouch.xcd.cms.mapper.ContractMapper;
import com.newtouch.xcd.cms.service.ContractService;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 合同表 服务实现类
 * </p>
 *
 * @author dongyuefeng
 * @since 2020-05-21
 */
@Component
@Service
public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract> implements ContractService {

    @Override
    public Contract queryByTrustId(String trustId){

        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("trust_id",trustId);
        return this.getOne(queryWrapper);
    }
}
